<template>
    <mt-header title="有问题，上知乎" >
        <span slot="right" v-if="condition">未登录</span>
        <img src="../assets/images/me_disabled.png" alt="" slot="right" v-else>
    </mt-header>
</template>
<script>
export default {

    data(){
        return{
            condition:this.$store.state.username == ''&&window.localStorage.getItem('username')==null,
        }
    }
}
</script>